package com.lyf.service;

import com.lyf.dao.IdeaDao;
import com.lyf.pojo.Idea;
import com.lyf.util.Pager;

public class IdeaService {

	private IdeaDao dao;

	//set,
	public void setDao(IdeaDao dao) {
		this.dao = dao;
	}

	public void save(Idea idea) {
		dao.saveOrUpdate(idea);
	}

	public Pager<Idea> findByProjectId(String id,Integer num) {
		return dao.findByProjectId(id, num);
	}

	public Idea findById(String id) {
		return dao.get(id);
	}

	public void delete(String id) {
		dao.delete(id);
	}
	
	
	
}
